package com.liang.demo01;

/**
 * @Author:liangli
 * @Date:2020/11/17 10:20
 */
public class TestThread1 extends Thread{
    @Override
    public void run() {
        //run方法线程体
        for (int i=0;i<20;i++){
            System.out.println("我在看代码*****"+i);
        }
    }

    public static void main(String[] args) {
        TestThread1 thread1=new TestThread1();
        thread1.start();
        for (int i=0;i<20;i++){
            System.out.println("我在学习多线程*****"+i);
        }
    }
}
